package cn.it.jbcript;

import org.junit.Test;

public class Test1 {
    public static void main(String[] args) {

        String gensalt = BCrypt.gensalt();
        //  System.out.println(gensalt);

        String hashpw = BCrypt.hashpw("123456", gensalt);
        System.out.println(hashpw);
    }


    @Test
    public void t1(){

        boolean checkpw = BCrypt.checkpw("1234", "$2a$10$FNFLB/Wx5yPZpBV.pWtQuel2d.PXPXvOaknWoRmkb7RLie2qjwm4C");

        System.out.println(checkpw);
    }

}
